From: Julius Werner Date: Tue, 4 Dec 2018 01:01:30 +0000 (-0800) Subject: console: Fix console_unregister() signature X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=0f8aee4e45d3e74f5ebb385c8afcdee6c3b4c73a;p=project%2Fbcm63xx%2Fatf.git console: Fix console_unregister() signature console_unregister() has always returned a pointer to the console that was removed on success, not just an integer. Fix the C prototype to match the assembly implementation. Change-Id: Iafc43de0767a5c87c9ae5c3aba53761dd28d51e6 Signed-off-by: Julius Werner --- diff --git a/include/drivers/console.h b/include/drivers/console.h index 23754665..02f2f8a2 100644 --- a/include/drivers/console.h +++ b/include/drivers/console.h @@ -52,8 +52,9 @@ typedef struct console { * implementation, e.g. console_16550_register() from . Consoles * registered that way can be unregistered/reconfigured with below functions. */ -/* Remove a single console_t instance from the console list. */ -int console_unregister(console_t *console); +/* Remove a single console_t instance from the console list. Return a pointer to + * the console that was removed if it was found, or NULL if not. */ +console_t *console_unregister(console_t *console); /* Returns 1 if this console is already registered, 0 if not */ int console_is_registered(console_t *console); /*